home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / toolboxsas.lha / Toolbox / lib / include / DynArray.h next >
Encoding:
C/C++ Source or Header  |  1995-02-15  |  1.1 KB  |  40 lines

  1. #ifndef yyDynArray
  2. #define yyDynArray
  3.  
  4. /* $Id: DynArray.h,v 1.4 1992/08/07 14:36:51 grosch rel $ */
  5.  
  6. /* $Log: DynArray.h,v $
  7.  * Revision 1.4  1992/08/07  14:36:51  grosch
  8.  * added comments
  9.  *
  10.  * Revision 1.3  1991/11/21  14:28:16  grosch
  11.  * new version of RCS on SPARC
  12.  *
  13.  * Revision 1.2  91/07/17  17:23:02  grosch
  14.  * introduced ARGS trick for ANSI compatibility
  15.  *
  16.  * Revision 1.1  90/07/04  14:33:52  grosch
  17.  * introduced conditional include
  18.  *
  19.  * Revision 1.0  88/10/04  11:44:36  grosch
  20.  * Initial revision
  21.  *
  22.  */
  23.  
  24. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  25.  
  26.  
  27. void MakeArray(char **ArrayPtr, unsigned long *ElmtCount, unsigned long ElmtSize);
  28. /* 'ArrayPtr' is set to the start address of a  */
  29. /* memory space to hold an array of 'ElmtCount' */
  30. /* elements each of size 'ElmtSize' bytes.      */
  31.  
  32. void ExtendArray(char **ArrayPtr, unsigned long *ElmtCount, unsigned long ElmtSize);
  33. /* The memory space for the array is increased */
  34. /* by doubling the number of elements.         */
  35.  
  36. void ReleaseArray(char **ArrayPtr, unsigned long *ElmtCount, unsigned long ElmtSize);
  37. /* The memory space for the array is released.  */
  38.  
  39. #endif
  40.